﻿using mozhi.smarterp.Business.Common;
using mozhi.smarterp.Business.Enums;
using System;
using System.Collections.Generic;

namespace mozhi.smarterp.Business.Sales.Quotations
{
    public class SaleQuotationDto : DocumentHeaderDto
    {
        public SaleQuotationType Type { get; set; }

        public Guid CustomerId { get; set; }

        public string CustomerName { get; set; }

        public string Address { get; set; }



        public Guid? SalePersonId { get; set; }

        public string SalePersonName { get; set; }

        /// <summary>
        /// 生效日期
        /// </summary>
        public DateTime? EffectiveDate { get; set; }

        /// <summary>
        /// 失效日期
        /// </summary>
        public DateTime? ExpirationDate { get; set; }

        public List<SaleQuotationItemDto> Items { get; set; }
    }

    public class SaleQuotationItemDto : DocumentBodyDto
    {
        public Guid SaleUnitId { get; set; }

        public string SaleUnitName {  get; set; }

        public decimal SaleQuantity {  get; set; }

        public bool IsGift { get; set; }
    }
}
